<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var d = new Date();
        var endtime = d.getTime();
        d.setMonth(4,1);
        var starttime = d.getTime();
        var num = (endtime - starttime)/1000
        var day = num / 3600 /24;
        document.write('距离五一已经过去了'+day+'天')
    </script>
</body>
</html>